package com.serviceprovider.business.module.admin.provider.model;

//~--- non-JDK imports --------------------------------------------------------

import org.springframework.web.multipart.commons.CommonsMultipartFile;

public class Provider {
    private String               bCity;
    private String               bCountry;
    private String               bDate;
    private String               bMonth;
    private String               bName;
    private String               bState;
    private String               bYear;
    private String               efin;
    private CommonsMultipartFile file;
    private String               fname;
    private String               iDate;
    private String               iMonth;
    private String               iYear;
    private Integer              id;
    private String               issueState;
    private String               lname;
    private String               password;
    private String               status;
    private String               uEmail;

    @Override
    public boolean equals(Object obj) {
        if ((obj == null) ||!(obj instanceof Provider)) {
            return false;
        }

        Provider b  = (Provider) obj;
        boolean  eq = ((id == null) && (b.id == null)) || ((id != null) && id.equals(b.id));

        if (!eq) {
            return false;
        }

        eq = ((fname == null) && (b.fname == null)) || ((fname != null) && fname.equals(b.fname));

        if (!eq) {
            return false;
        }

        eq = ((lname == null) && (b.lname == null)) || ((lname != null) && lname.equals(b.lname));

        if (!eq) {
            return false;
        }

        eq = ((uEmail == null) && (b.uEmail == null)) || ((uEmail != null) && uEmail.equals(b.uEmail));

        if (!eq) {
            return false;
        }

        eq = ((efin == null) && (b.efin == null)) || ((efin != null) && efin.equals(b.efin));

        if (!eq) {
            return false;
        }

        return true;
    }

    @Override
    public int hashCode() {
        int prime  = 31;
        int result = 1;

        result = prime * result + ((id == null)
                                   ? 0
                                   : id.hashCode());
        result = prime * result + ((fname == null)
                                   ? 0
                                   : fname.hashCode());
        result = prime * result + ((lname == null)
                                   ? 0
                                   : lname.hashCode());
        result = prime * result + ((uEmail == null)
                                   ? 0
                                   : uEmail.hashCode());
        result = prime * result + ((efin == null)
                                   ? 0
                                   : efin.hashCode());

        return result;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getLname() {
        return lname;
    }

    public void setLname(String lname) {
        this.lname = lname;
    }

    public String getEfin() {
        return efin;
    }

    public void setEfin(String efin) {
        this.efin = efin;
    }

    public String getuEmail() {
        return uEmail;
    }

    public void setuEmail(String uEmail) {
        this.uEmail = uEmail;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getbDate() {
        return bDate;
    }

    public void setbDate(String bDate) {
        this.bDate = bDate;
    }

    public String getbMonth() {
        return bMonth;
    }

    public void setbMonth(String bMonth) {
        this.bMonth = bMonth;
    }

    public String getbYear() {
        return bYear;
    }

    public void setbYear(String bYear) {
        this.bYear = bYear;
    }

    public String getiDate() {
        return iDate;
    }

    public void setiDate(String iDate) {
        this.iDate = iDate;
    }

    public String getiMonth() {
        return iMonth;
    }

    public void setiMonth(String iMonth) {
        this.iMonth = iMonth;
    }

    public String getiYear() {
        return iYear;
    }

    public void setiYear(String iYear) {
        this.iYear = iYear;
    }

    public String getbName() {
        return bName;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public String getbState() {
        return bState;
    }

    public void setbState(String bState) {
        this.bState = bState;
    }

    public String getbCountry() {
        return bCountry;
    }

    public void setbCountry(String bCountry) {
        this.bCountry = bCountry;
    }

    public String getbCity() {
        return bCity;
    }

    public void setbCity(String bCity) {
        this.bCity = bCity;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIssueState() {
        return issueState;
    }

    public void setIssueState(String issueState) {
        this.issueState = issueState;
    }

    public CommonsMultipartFile getFile() {
        return file;
    }

    public void setFile(CommonsMultipartFile file) {
        this.file = file;
    }
}



